﻿using FluentNHibernate.Mapping;
using Thaire.Investment.Domains.Master;

namespace Thaire.Investment.Repository.Mapping
{
    class LocationMap : ClassMap<Location>
    {
        public LocationMap()
        {
            Table("LOCATION");
            Id(x => x.LocationId, "LOCATION_ID").GeneratedBy.Identity();
            Map(x => x.LocationCode, "LOCATION_CODE");
            Map(x => x.LocationDesc, "LOCATION_DESC");
            Map(x => x.LocationLevel, "LOCATION_LEVEL");

        }
    }
}
